<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
<hello v-for="item in items" v-bind:v="item"></hello>
</div>

<!--导入vue.js编写js代码-->
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
    Vue.component("hello",{
        props:["v"],
        template: "<h1>{{v}}</h1>"
    });
    let vm = new Vue({
        el:"#app",
        data:{
            items: ["java","mysql","h5"]
        }
    });
</script>
</body>
</html>